﻿namespace Digitalmes.ApiService.Models;

/// <summary>
/// 画布点位
/// </summary>
public sealed class CanvasModel
{
    /// <summary>
    /// 配方名称，与文件名保持一致
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 画布宽度
    /// </summary>
    public double Width { get; set; }

    /// <summary>
    /// 画布高度
    /// </summary>
    public double Height { get; set; }

    /// <summary>
    /// 颜色设定
    /// </summary>
    public Dictionary<int, string> Colors { get; set; } = new()
    {
        { 1, "#95e1d3" },
        { 2, "red" },
        { 3, "yellow" },
    };

    /// <summary>
    /// 点位集合
    /// </summary>
    public List<CanvasPointModel> Points { get; set; } = [];
}
